<?php
/**
 * privilege 和 department 中间表
 * @author silenus
 *
 */
class mid_privilege_department extends spModel {
	public $pk = 'privilege_id';
	public $table = 'mid_privilege_department';
	
	/**
	 *
	 * @param int $privilege_id        	
	 * @return array department auth table
	 */
	function getAuthBypid($privilege_id) {
		$result = $this->findAll ( array (
				'privilege_id' => $privilege_id 
		) );
		
		return $result;
	}
	
	function get(){
		
	}
	
}
?>